package imnu.io.file;

import java.io.File;
import java.io.FilenameFilter;

/**
 * @author: lys
 * @类名: MyFile
 * @Title:
 * @date: 2020/7/20
 **/
public class MyFile implements FilenameFilter {
    @Override
    public boolean accept(File file, String name) {
        if (name.endsWith(".avi")){
            return true;
        }else{
            return false;
        }
    }
}
